<template>
	<view class="userinfo-info-page">
		<!-- 导航栏 -->
		<free-nav-bar textContent="修改信息" isBackShow></free-nav-bar>
		<view class="userinfo-wrapper">
			<view class="input-wrapper avater flex">
				<view class="label main-text-color">头像</view>
				<view class="flex select__wrapper" @click="handleFruits()">
					<view class="select__content">
						<span class="img"></span>
					</view>
					<view class="select"><i class="sprite sprite-arrow-r"></i></view>
				</view>
			</view>
			<view class="input-wrapper flex">
				<view class="label main-text-color">果园名称</view>
				<view class="flex select__wrapper" @click="handleFruits()">
					<view class="select__content main-text-color">乐怡果园</view>
					<view class="select"><i class="sprite sprite-arrow-r"></i></view>
				</view>
			</view>
			<view class="input-wrapper flex">
				<view class="label main-text-color">抽成模式</view>
				<view class="flex select__wrapper" @click="handleFruits()">
					<view class="select__content main-text-color">差价模式</view>
					<view class="select"><i class="sprite sprite-arrow-r"></i></view>
				</view>
			</view>
			<view class="input-wrapper flex">
				<view class="label main-text-color">种植果类</view>
				<view class="flex select__wrapper" @click="handleFruits()">
					<view class="select__content main-text-color">芒果、荔枝、龙眼</view>
					<view class="select"><i class="sprite sprite-arrow-r"></i></view>
				</view>
			</view>
			<view class="input-wrapper flex" style="margin-top: 16rpx;">
				<view class="label main-text-color">联系号码</view>
				<view class="flex select__wrapper">
					<view class="select__content main-text-color">13824875482</view>
					<view class="select"><i class="sprite sprite-arrow-r"></i></view>
				</view>
			</view>
			<view class="input-wrapper license flex">
				<view class="label main-text-color">营业执照</view>
				<view class="flex select__wrapper">
					<view class="select__content">
						<span class="img"></span>
					</view>
					<view class="select"><i class="sprite sprite-arrow-r"></i></view>
				</view>
			</view>
			<view class="input-wrapper flex" style="margin-top: 16rpx;">
				<view class="label main-text-color">经营介绍</view>
				<view class="flex select__wrapper">
					<view class="select__content main-text-color">啦啦啦啦啦啦啦啦啦坎坎坷坷</view>
					<view class="select"><i class="sprite sprite-arrow-r"></i></view>
				</view>
			</view>
		</view>
		<hqs-popup title="种植果类" v-model="showPopup">
		    <view>弹窗内容</view>
		</hqs-popup>
	</view>
</template>

<script>
	import $H from '@/common/free-lib/request.js';
	import freeNavBar from "@/components/free-ui/free-nav-bar.vue"
	export default {
		components: {
			freeNavBar
		},
		data() {
			return {
				showPopup: false,
				params: {
					name: '',
					type: null,
					address: '',
					mode: '',
					desc: '',
					full_name: '',
					phone: '',
					business_license: '',
					status: 0
				}
			}
		},
		created() {
			
		},
		methods: {
			handleFruits() {
				this.showPopup = true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.userinfo-info-page {
		.userinfo-wrapper {
			padding-top: 16rpx;
		}
		.input-wrapper {
			position: relative;
			padding-left: 30rpx;
			height: 88rpx;
			line-height: 88rpx;
			background: #fff;
			border-bottom: 1px solid #EBEBEB;
			
			&:last-child {
				border-bottom: none;
			}
			&.avater {
				height: 128rpx;
				line-height: 128rpx;
				
				.select__content {
					height: 80rpx;
					
					.img {
						display: inline-block;
						width: 80rpx;
						height: 80rpx;
						border-radius: 200px;
						background: pink;
					}
				}
			}
			&.license {
				height: 174rpx;
				line-height: 174rpx;
				border: none;
				margin-bottom: 16rpx;
				
				.select__content {
					height: 126rpx;
					
					.img {
						display: inline-block;
						width: 172rpx;
						height: 126rpx;
						background: pink;
					}
				}
			}
			.label {
				width: 200rpx;
				font-size: 28rpx;
			}
			.input {
				display: block;
				flex: 1;
				font-size: 28rpx;
				height: 88rpx;
				line-height: 88rpx;
			}
			.select__wrapper {
				flex: 1;
				align-items: center;
			}
			.select__content {
				flex: 1;
				font-size: 28rpx;
				padding-right: 60rpx;
				text-align: right;
			}
			.select {
				position: absolute;
				top: 50%;
				right: 0;
				transform: translateY(-50%);
				display: flex;
				align-items: center;
				justify-content: center;
				cursor: pointer;
				width: auto;
				padding-left: 16rpx;
				padding-right: 30rpx;
				height: 88rpx;
			}
		}
	}
</style>
